package com.eight.cloud.job.quartz;

import com.eight.cloud.job.model.vo.JobDataMapVo;
import com.eight.cloud.job.util.JobInvokeUtil;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

/**
 * 定时任务禁止并发
 *
 * @ClassName: QuartzDisallowConcurrentExecution
 * @Author: TXC
 * @Date: 2025-02-24 21:14
 **/
@DisallowConcurrentExecution
public class DisallowCConcurrentJobActuator extends AbstractQuartzJob{

    @Override
    protected void doExecute(JobExecutionContext context, JobDataMapVo jobDataMap) throws Exception {
        JobInvokeUtil.invokeMethod(jobDataMap);
    }
}
